// 题目来源：https://iai.sh.cn/problem/71
#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  cout << 1 + (1 + n) * n / 2;

  int sum=1;
  for (int i = 1; i <= n; i++){
    sum +=i;    
  }
  cout << sum;

  return 0;
}